<html>
<head>
    <link href="../css/content.css" rel="stylesheet">
    <script src="https://cdn.bootcss.com/jquery/3.4.1/jquery.js"></script>
    <script src="https://cdn.bootcss.com/jqueryui/1.12.1/jquery-ui.js"></script>
    <script src="https://cdn.bootcss.com/font-awesome/5.10.0-12/js/all.min.js"></script>
    <script type="text/javascript" src="../js/jquery.qrcode.min.js"></script>
    <script type="text/javascript" src="../js/child_function.js"></script>
</head>
<body>
<?php
include '../class/control.php';
include '../db/sql.php';
$show_content = new \control_function\ContentControl();
$show_content->get_user_id($_COOKIE['user_id']);
$start_date = date("Y-m-d");
$end_date = date("Y-m-d");
?>
<div class="content_border">
    <div class="titlePanel">
        <table>
            <tr>
                <td><input id="search_keyword" placeholder="输入关键字查询信息"></td>
                <td><a class="btn_search" onclick="show_all_find_key('')"><i class="fas fa-search"></i>查询</a></td>
            </tr>
        </table>
        <ul>
            <li class="li_end" onclick="suggest_detail()"><i class="fas fa-info"></i> 详细信息</li>
            <li class="li_start" onclick="add_sug()"><i class="fas fa-plus"></i> 新增</li>
            <li class="li_end" onclick="show_all_find_key(90)">近90天</li>
            <li onclick="show_all_find_key(30)">近30天</li>
            <li onclick="show_all_find_key(7)">近7天</li>
            <li class="li_start" onclick="show_all_find_key(1)">近2天</li>
            <li id="choose_date">
                多查询条件
                <strong id="SelectStartDate">
                    <?php echo $start_date ?>
                </strong>
                至
                <strong id="SelectEndDate">
                    <?php echo $end_date ?>
                </strong>
            </li>
            <div id="choose_date_table">
                <table>
                    <tr>
                        <td>
                            间隔日期:
                        </td>
                        <td>
                            <input type="date" id="StartDate">至<input type="date" id="EndDate">
                        </td>
                    </tr>
                    <tr>
                        <td>
                            部门:
                        </td>
                        <td>
                            <input type="text" id="department" size="37">
                        </td>
                    </tr>
                    <tr>
                        <td>
                            状态:
                        </td>
                        <td>
                            <input type="text" id="State" size="37">
                        </td>
                    </tr>
                </table>
                <div class="btn_search" onclick="show_all_find_key('')"><i class="fas fa-search"></i>查询</div>
            </div>
        </ul>
    </div>
    <div class="contentPanel">
        <?php
        $show_content->get_start_date($start_date);
        $show_content->get_end_date($end_date);
        $show_content->ShowAll($db,"","","");
        ?>
    </div>
</div>
</body>
</html>